package com.example.servicemodule

import android.app.Service
import android.content.Intent
import android.os.Binder
import android.os.IBinder
import android.util.Log

class MyLocalService : Service() {
    private lateinit var TAG:String
    init {
        TAG="MyLocalService"
        Log.e(TAG, "MyService() " )
    }
    override fun onBind(intent: Intent): IBinder {
//        TODO("Return the communication channel to the service.")
        return Binder()
    }

    override fun onCreate() {
        super.onCreate()
        Log.e(TAG, "onCreate: " )
    }

    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        Log.e(TAG, "onStartCommand: " )
        return super.onStartCommand(intent, flags, startId)
    }

    override fun onDestroy() {
        Log.e(TAG, "onDestroy: " )
        super.onDestroy()
    }
}